<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>flex-shrink</title>
    <style>
        .container{
            display: flex;
            border:2px solid #966;
        }
        .a , .b , .c{
            text-align: center;
            padding: 1em;
            width: 1000px;
        }
        .a{
            /*不能压缩*/
            flex-shrink: 0;
            background: #fcc;
        }
        .b{
           /*默认flex-shrink为1*/
            background: #ed6000;
        }
        .c{
            background: gold;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="a">A</div>
    <div class="b">B</div>
    <div class="c">C</div>
</div>

</body>
</html>